expression: Fix property expressions for interfaces
authorMatthias Clasen <mclasen@redhat.com>
Sat, 31 Oct 2020 02:24:53 +0000 (22:24 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 31 Oct 2020 02:27:40 +0000 (22:27 -0400)
commit48dcbf4935444a75974c50c1a9900e38f1e314c6
tree7865c856be303af88597728bb40a2212bd72b23a
parent59dd7d8900402d33e360327a7d960fc1c8d3cf65
expression: Fix property expressions for interfaces

We were not checking the passed-in type in the right
way. An interface type can still pass the
g_type_is_a (..., G_TYPE_OBJECT) check, if G_TYPE_OBJECT
is one of its prerequisites. What we need to check is
whether the fundamental type is G_TYPE_OBJECT.
gtk/gtkexpression.c